package com.wn.service;

import com.wn.dto.AddCourseDTO;
import com.wn.pojo.Course;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wn.utils.PageData;
import com.wn.vo.CoursePublishVo;
import com.wn.vo.CourseVo;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author yellow docker
 * @since 2023-06-20
 */
public interface ICourseService extends IService<Course> {

    String saveCourse(AddCourseDTO addCourseDTO);

    AddCourseDTO findAddCourseDTO(String courseId);

    CoursePublishVo findPublish(String courseId);

    boolean publish(String courseId);

    PageData findPageCourse(Integer currentPage, Integer pageSize);

    List<CourseVo> findHotPageCourse();

    PageData findAllPageCourse(Integer currentPage, Integer pageSize);
}
